using SqlSugar;
namespace CoreShop.Model
{
    /// <summary>
    /// 商品配菜表
    /// </summary>
    public  class corecmsfooddetailgroup
    {

        /// <summary>
        /// 序列
        /// </summary>
        [SugarColumn(ColumnDescription = "序列", IsPrimaryKey = true)]
        public System.Int64 id  { get; set; }
        /// <summary>
        /// 品牌id
        /// </summary>
        [SugarColumn(ColumnDescription = "品牌id")]
        public System.Int32 corpId  { get; set; }
        /// <summary>
        /// 门店id
        [SugarColumn(ColumnDescription = "门店id")]
        [SplitField]
        public System.Int32 storeId  { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        [SugarColumn(ColumnDescription = "商品id")]
        public System.Int64 foodId  { get; set; }
        /// <summary>
        /// 分组id
        /// </summary>
        [SugarColumn(ColumnDescription = "分组id")]
        public System.Int64 groupId  { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(ColumnDescription = "是否删除")]
        public System.Boolean isDelete { get; set; } = false;
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间")]
        public System.DateTime createTime  { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
        public System.DateTime? updateTime  { get; set; }
        /// <summary>
        /// 1：数量不限，2：数量必选，3范围
        /// </summary>
        [SugarColumn(ColumnDescription = "1：数量不限，2：数量必选，3范围", IsNullable = true)]
        public System.Int32 selectType  { get; set; }
        /// <summary>
        /// 必选数量
        /// </summary>
        [SugarColumn(ColumnDescription = "必选数量", IsNullable = true)]
        public System.Int32? minQuantity  { get; set; }
        /// <summary>
        /// 最多可选数量
        /// </summary>
        [SugarColumn(ColumnDescription = "最多可选数量", IsNullable = true)]
        public System.Int32? maxQuantity  { get; set; }
        /// <summary>
        /// 是否可选择相同商品
        /// </summary>
        [SugarColumn(ColumnDescription = "是否可选择相同商品")]
        public System.Boolean isSelectSame { get; set; } = false;
        /// <summary>
        /// 收取金额方式（1：明细合计，最高价明细）
        /// </summary>
        [SugarColumn(ColumnDescription = "收取金额方式（1：明细合计，最高价明细）", IsNullable = true)]
        public System.Int32? collectType  { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnDescription = "修改时间", IsNullable = true)]
        public System.Int64? modifyTime  { get; set; }

        /// <summary>
        /// 配菜数量随商品点餐数量增加或减少
        /// </summary>
        [SugarColumn(ColumnDescription = "配菜数量随商品点餐数量增加或减少")]
        public System.Boolean isAddByfoodCount { get; set; } = false;
        
    }
}
